package com.qfedu.edu.seckill.config;

import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperConfiguration;
import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @author xiaobobo
 * @title: ZookeeperConfig
 * @projectName cd-java-2404-seckill-parent
 * @description: 注册中心的配置
 * @date 2025/2/11  15:41
 */
@SpringBootConfiguration
public class ZookeeperConfig {


 @Bean(initMethod = "init")
 public ZookeeperRegistryCenter zookeeperRegistryCenter(){
  ZookeeperRegistryCenter zookeeperRegistryCenter = new ZookeeperRegistryCenter(new ZookeeperConfiguration("10.7.183.85:2181", "MySimpleNameSpace"));
  return zookeeperRegistryCenter;
 }


}
